package org.witsoft.dtx.core;

/**
 * @author XiaoQing Lin
 * @date 2020-09-18 18:53
 */
public class LocalTransactionThreadLocal {

    private final static ThreadLocal<LocalTransaction> threadLocal = new ThreadLocal<LocalTransaction>();

    public static LocalTransaction get(){
        return threadLocal.get();
    }

    public static void set(LocalTransaction value){
        threadLocal.set(value);
    }

    public static void remove(){
        threadLocal.remove();
    }
}
